<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
	<script src="js/jquery-3.3.1.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			#div1{
				width: 300px;
				height: 300px;
				background-color: #00FFFF;
			}
			#div2{
				width: 200px;
				height: 200px;
				background-color:  #8A2BE2;
			}
			#div3{
				width: 100px;
				height: 100px;
				background-color:  #FFFF00;
				position: fixed;

			}
			
		</style>
		<script type="text/javascript">
			$(function(){
				$("#div1").click(function(){
					alert("外层");
				})
				$("#div2").click(function(e){
					alert("中层");
					//组织行为
					//return false;
					//组织冒泡
					e.stopPropagation();
				})
				$("#div3").click(function(e){
					alert("内层");
					//return false;
					e.stopPropagation();
				})
			})
		</script>
	</head>
	<body>
		<div id="div1">
			<div id="div2">
				<div id="div3">
					
				</div>
			</div>
		</div>
	</body>
</html>
